package com.ang.mybatisplus.sensitive.mapper;

import com.ang.mybatisplus.sensitive.domain.SensitiveUser;
import com.ang.mybatisplus.sensitive.dto.SensitiveUserDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ssang
 * @since 2022-10-15
 */
public interface SensitiveUserMapper extends BaseMapper<SensitiveUser> {

    List<Map> listByMapReturnMap(Map<String, String> map);

    List<SensitiveUser> listByDomainReturnDomain(SensitiveUser sensitiveUser);

    List<SensitiveUserDTO> listByDtoReturnDto(SensitiveUserDTO sensitiveUserDTO);

    List<SensitiveUser> queryXmlDomainPage(@Param("crypt") SensitiveUser sensitiveUser);

    IPage queryXmlDomainIPage(Page page, @Param("crypt") SensitiveUser sensitiveUser);
}
